<template>
	<view class="page">
		<view class="body ">
			<view class="body_cont justify-content-sp" v-for="(item,index) in dataList" :key="item.index"
				:style="item.id == 5?'border:none;':''" @click="toPath(item.url)">
				<view class="">
					{{item.text}}
				</view>
				<view class="">
					<uni-icons type="right" size="25"></uni-icons>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [{
						id: 0,
						text: "平台设置",
						url: '/pages/platform/index'
					},
					{
						id: 1,
						text: "弹窗公告",
						url: '/pages/popups/index?type=1'
					},
					{
						id: 2,
						text: "滚动公告",
						url: '/pages/popups/index?type=2'
					},
					{
						id: 3,
						text: "支付配置",
						url: '/pages/popups/index?type=3'
					},
					{
						id: 4,
						text: "广告配置",
						url: ''
					},
					{
						id: 5,
						text: "角色配置",
						url: ''
					}
				]
			}
		},
		methods: {
			toPath(e) {
				uni.navigateTo({
					url: e
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		min-height: 100%;

		.body {
			.body_cont {
				line-height: 30px;
				padding: 10px 0;
				border-bottom: 1px solid #b2b2b2;
			}
		}
	}
</style>